package com.ruoyi.common.core.domain.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;

/**
 * @version :
 * @program: easyBuy
 * @description: IM发送文本消息model
 * @author: 周爱鸿
 * @create: 2020-09-18 14:25
 **/
@ApiModel("IM发送文本消息model")
@Data
public class IMTextMessageModel extends IMMessageModel {

	@ApiModelProperty("消息体")
	private TextBody messageBody;

	@Data
	public class TextBody{
		@NotEmpty
		@ApiModelProperty("消息内容")
		private String text ;
		@ApiModelProperty("选填的json对象 开发者可以自定义extras里面的key value（选填）")
		private String extras;
	}
}
